package com.hl.sfzy.mapper;

import com.hl.sfzy.entity.Fm;
import com.hl.sfzy.entity.Heartk;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Mystic
* @description 针对表【fm】的数据库操作Mapper
* @createDate 2025-03-10 10:19:26
* @Entity com.hl.sfzy.entity.Fm
*/
@Mapper
public interface FmMapper {
    //根据id删除
    int deleteByPrimaryKey(Long id);
    //新增
    int insert(Fm record);

    int insertSelective(Fm record);
    //根据id查询
    Fm selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Fm record);
    //修改
    int updateByPrimaryKey(Fm record);
    //批量删除
    int removeBatch(List<Long> ids);

    //查询所有
    List<Fm> find(int pageNum, int pageSize);
    //分页查询
    List<Fm> findByPage(@Param("pageNum") int pageNum,
                            @Param("pageSize") int pageSize,
                            @Param("fm") Fm fm);

}
